package com.dengyuanke.entity.enums;

import com.baomidou.mybatisplus.enums.IEnum;

import java.io.Serializable;

/**
 * Created by dengyuanke on 2017/11/8.
 */
public enum BooleanEnum implements IEnum {

    FALSE(Boolean.FALSE, "否"),
    TRUE(Boolean.TRUE, "是");

    private Boolean value;
    private String desc;

    BooleanEnum(final Boolean value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Serializable getValue() {
        return this.value;
    }
}
